package com.sun.huazhi.aitaskservice.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("video_tasks")
@Schema(description = "视频任务实体")
public class VideoTasksDO {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private String taskId; // UUID

    private String status; // pending, generating, completed, failed

    //private String videoUrl; // 删除url逻辑

    private String prompt; // 用户输入的问题

    private LocalDateTime createdTime;

    // 新增GridFS关联字段
    private String gridFsFileId; // 存储MongoDB的文件ID
    private String videoFormat;  // 视频格式（如mp4）
}
